package Ex1;

/**
 * @author ZZQ
 * @PackageName: Ex1
 * @ClassName: Ex102
 * @Description:
 * @date 2021/1/18 16:39
 */
public class Ex102 {
    public static void main(String[]args){
        System.out.println("前10项的积为" + product(10));
    }
    public static long product(int n){
        if (n == 1) {
            return 1;
        }
        return n * product(n - 1);
    }
}


